<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var array1 = new Array(7);
			console.log(array1.length);//长度


		//创建空的数组
		//f赋值，长度不固定
		var array2 = new Array();
		array2[0] = "343";
		array2[1] = "ture";
		console.log(array2);
		
		
		//第二种放数值
//		.push()放入
//		.pop()从后往前取出一个，里面没有了
		var array3 = new Array();
		array3.push("张三");
		array3.push(234);
		array3.push(12);
		array3.push(121);
		array3.push(true);
		console.log(array3)
		
		console.log(array3.pop());
		console.log(array3)
		console.log(array3.pop());
		console.log(array3)
		console.log(array3.pop());
		</script>
	</head>
	<body>
	</body>
</html>
